PhD

The LaTeX sources of my Ph.D. thesis
git clone https://esimon.eu/repos/PhD.git
Log | Files | Refs | README | LICENSE

moved marginpar.lua (450B)


      1 local moved_marginpar = {}
      2 
      3 moved_marginpar.list = {}
      4 
      5 function moved_marginpar.display()
      6 	io.stdout:write("Marginpar moved on pages:")
      7 	for _, page in ipairs(moved_marginpar.list) do
      8 		io.stdout:write(" " .. page)
      9 	end
     10 	print()
     11 end
     12 
     13 function moved_marginpar.declare(location)
     14 	table.insert(moved_marginpar.list, location)
     15 end
     16 
     17 luatexbase.add_to_callback("wrapup_run", moved_marginpar.display, "Display all moved marginpar.")
     18 
     19 return moved_marginpar